<#include "/common/seajs/layout/action_head_layout.html" />
<@action_head_layout>
<title>${jxrb.message(actionName,"systemDictType")} ${(systemDictType.dicttype_name)!}</title>
<script language="javascript">
    seajs.use(["jquery","jx_msgbox_plus"],function($,msgbox){
  function submitDictTypeInfo()
  {
    msgbox.confirm({url:"${controllerKey}${action}/"},
    function()
    {
      msgbox.close() ;
      if (msgbox.messageType != 2)
        clearForm() ;
      
    },function()
    {
      if (msgbox.messageType != 2)
        location.href = "${controllerKey}";
    });
  }
  
function clearForm()
{
  var action = '${action}';
  if (action == 'added')
  {
    $("#dictTypeName").val("");
    $("#dictTypeId").val("");
    $("#description").val("") ;
  }
}

window.submitDictTypeInfo = submitDictTypeInfo ;
});
</script>
</@action_head_layout>
<#include "/common/layout/action_body_layout.html" />
<@action_body_layout>
<#include "info.html" />
<br/>
<center>
  <input type="button" class="inputbutton" onclick="submitDictTypeInfo();" value='${jxrb.message("action.save")}' />&nbsp;&nbsp;&nbsp;&nbsp;
  <#include "/common/return.html" />
  <@return/>    
</center>
</@action_body_layout>
<script>
  seajs.use(["jquery"],function($){
var action = '${action}';
if (action == 'edited')
{
  $("#dictTypeId").attr("readonly","readonly");
  $("#dictTypeId").addClass("readonly_input");
}
  });
</script>
